package com.lemote.service.schedule.impl;

import java.io.File;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lemote.core.Page;
import com.lemote.dao.schedule.WorkScheduleDao;
import com.lemote.entity.ScheuleEntity;
import com.lemote.service.schedule.ScheduleService;

/**
 * 
 * @author wuhui
 * @time 2011-7-11 下午08:34:15
 * @Version:0.0.1
 * @since smt
 */
@Service("scheduleService")
public class ScheduleServiceImpl implements ScheduleService {

	private WorkScheduleDao workScheduleDao;

	@Override
	public void scheduleJob() {

		workScheduleDao.backup();
	}

	@Autowired
	public void setWorkScheduleDao(WorkScheduleDao workScheduleDao) {
		this.workScheduleDao = workScheduleDao;
	}

	@Override
	public void recove(File file) {

		workScheduleDao.recove(file);
	}

	@Override
	public Page<ScheuleEntity> fileList(Page page) {

		return workScheduleDao.fileList(page);
	}


}
